home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSCCCCGGGGeeeettttSSSSccccaaaannnnSSSSiiiizzzzeeee((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSCCCCGGGGeeeettttSSSSccccaaaannnnSSSSiiiizzzzeeee((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- SCGetScanSize - Determine the amount of image data to be scanned
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccaaaannnnnnnneeeerrrr....hhhh>>>>
-
- iiiinnnntttt SSSSCCCCGGGGeeeettttSSSSccccaaaannnnSSSSiiiizzzzeeee((((SSSSCCCCAAAANNNNNNNNEEEERRRR ****ssss,,,, lllloooonnnngggg ****wwwwiiiiddddtttthhhh,,,, lllloooonnnngggg ****hhhheeeeiiiigggghhhhtttt,,,,
- lllloooonnnngggg ****bbbbyyyytttteeeessssPPPPeeeerrrrLLLLiiiinnnneeee))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _S_C_G_e_t_S_c_a_n_S_i_z_e is called after calling _S_C_S_e_t_u_p(3) to determine how much
- image data to retrieve from the scanner. *_w_i_d_t_h gets filled in with the
- number of pixels in each row, *_h_e_i_g_h_t gets filled in with the number of
- rows in the image, and *_b_y_t_e_s_P_e_r_L_i_n_e gets filled in with the number of
- bytes in each row.
-
- If the data type being scanned has a _p_a_c_k_i_n_g of SSSSCCCC____PPPPLLLLAAAANNNNAAAARRRR, then the total
- number of bytes to be scanned is given by the number of channels *
- *_h_e_i_g_h_t * *_b_y_t_e_s_P_e_r_L_i_n_e. Otherwise, the total number of bytes is simply
- *_h_e_i_g_h_t * *_b_y_t_e_s_P_e_r_L_i_n_e. See _S_C_S_e_t_u_p(3) and _S_C_G_e_t_D_a_t_a_T_y_p_e_s(3) for more
- information about data types.
-
- After calling _S_C_G_e_t_S_c_a_n_S_i_z_e, a scanning application should allocate
- buffers and write image file headers as appropriate, and then call
- _S_C_S_c_a_n(3) or _S_C_S_c_a_n_F_D(3) to start the actual scan.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- _S_C_G_e_t_S_c_a_n_S_i_z_e returns 0 if successful. If an error occurs, -1 is
- returned and _S_C_e_r_r_n_o is set to indicate the reason for failure.
-
- EEEEXXXXEEEECCCCUUUUTTTTIIIIOOOONNNN EEEERRRRRRRROOOORRRR CCCCOOOODDDDEEEESSSS
- _S_C_G_e_t_S_c_a_n_S_i_z_e will fail under the following circumstances.
-
- SCECOMM Error communicating with scanner driver
-
- SCEDEV Scanner driver error
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _l_i_b_s_c_a_n(3), _S_C_S_e_t_u_p(3), _S_C_S_c_a_n(3), _S_C_S_c_a_n_F_D(3).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-